package zilla.filesystem;

import java.io.File;
import java.util.ArrayList;

public class DirectoryTree {
	
	
	SystemFile root;
	SystemFile currentDir;
	String username;
	
	
	public DirectoryTree()
	{
		root = new Directory("_root_");
		currentDir = root;
	}
	
	public void createNewFile(File file)
	{
		YAFile yafile = new YAFile(file);
		yafile.parentDirectory = currentDir;
	    yafile.putOnCloud();
		currentDir.children.add(yafile);
		
	}
	
	public void createNewDir(String name)
	{
		Directory dir = new Directory(name);
		currentDir.children.add(dir);
	}

}
